﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using ATSBLL;

public partial class Airtightness_AirtightnessMOList : System.Web.UI.Page
{

    private Airtightness airtightness;

    /// <summary>
    /// 构造函数
    /// </summary>
    public Airtightness_AirtightnessMOList()
    {
        airtightness = new Airtightness();
    }
    protected void Page_Load(object sender, EventArgs e)
    {

    }


  
    /// <summary>
    /// 根据MO查询数据
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void butSelect_Click(object sender, EventArgs e)
    {
        Bind();
    }


    /// <summary>
    /// 数据绑定
    /// </summary>
    public void Bind()
    {
        string MO = tbMONum.Text.Trim();
        GridView1.DataSource = airtightness.GetAirtightnessByMO(MO);
        GridView1.DataBind();
       
    }

    /// <summary>
    /// 分页
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        Bind();
    }
 
}
